package com.xmu.prcs.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 植物图像表
 * @author frequent
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "image")
public class Image implements Serializable {

	private Integer idImage;
	private String imagePath;//图像文件存放的路径
	
	public Image(){
		
	}
	
	public Image(String imagePath){
		this.imagePath = imagePath;
	}
	
	@Id
	@GeneratedValue
	@Column(name = "idimage", unique = true, nullable = true)
	public Integer getIdImage() {
		return idImage;
	}

	public void setIdImage(Integer idImage) {
		this.idImage = idImage;
	}

	@Column(name = "imagepath", length = 50)
	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
	
	
}
